#ifndef ___include_stdarg_h__
#define ___include_stdarg_h__

#ifdef __cplusplus
extern "C" {
#endif

typedef void * va_list;

#define __dj_va_rounded_size(T)  \
  (((sizeof (T) + sizeof (int) - 1) / sizeof (int)) * sizeof (int))

#define va_arg(ap, T) \
    (ap = (va_list) ((char *) (ap) + __dj_va_rounded_size (T)),	\
     *((T *) (void *) ((char *) (ap) - __dj_va_rounded_size (T))))

#define va_end(ap)

#define va_start(ap, last_arg) \
 (ap = ((va_list) __builtin_next_arg (last_arg)))

#ifdef __cplusplus
}
#endif
#endif /* !__include_stdarg_h__ */
